import 'package:fltlib/router/app_route_container.dart';
import 'package:fltlib/theme/theme_provider.dart';
import 'package:fltlib/theme/themes.dart';
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: Themes.normalTheme(context),
      initialRoute: '/home',
      routes: AppRouteContainer.share.installRouters(), //注册总路由表
    );
  }
}
